Unpacking the process of how an algorithm is trained